<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<sf:form action="${pageContext.request.contextPath }/login"
		method="post">
		<h1>登录</h1>
		<c:if test="${param.error != null}">
		<p>Invalid username and password.</p>
		</c:if>
		<c:if test="${ logout == true }">
			<p>已成功登出</p>
		</c:if>
		用户名：<input type="text" name="username" />
		<br />
		密&nbsp;&nbsp;&nbsp;&nbsp;码：<input type="password" name="password" />
		<br>
		<input id="remember-me" type="checkbox" name="remember-me">
		<label for="remember-me">记住我一周</label>
		<br>
		<input type="submit" name="submin" value="Login">
		<input type="hidden" name="${_csrf_parameterName }"
			value="${ _csrf_token }">
	</sf:form>
</body>
</html>